package com.xinqi.common.core.enums;

public enum ResultConfigEnum {

    ADD_OK("add_success", "创建成功"),
    ADD_FAIL("add_fail", "创建失败"),
    UPDATE_OK("update_success", "修改成功"),
    UPDATE_FAIL("update_fail", "修改失败"),
    DELETE_OK("delete_success", "删除成功"),
    DELETE_FAIL("delete_fail", "删除失败"),
    COURSE_NOT_EXIST("course_not_exist", "课程不存在"),
    TITLE_NOT_NULL("title_not_null", "请输入标题"),
    GROUPIDS_NOT_NULL("groupids_not_null", "请选择发布对象"),
    SCORE_NOT_NULL("score_not_null", "请输入总分"),
    ENDTIME_NOT_NULL("endtime_not_null", "请选择截止时间"),
    DATA_NOT_EXIST("data_not_exist", "数据不存在"),
    ID_NOT_NULL("id_not_null", "ID不能为空"),
    CLASSID_NOT_NULL("classid_not_null", "班级ID不能为空"),
    CLASS_NOT_EXIST("class_not_exist", "班级数据不存在"),
    STUDENT_SCORE_NOT_NULL("student_score_not_null", "学生得分不能为空"),

    HOMEWORK_TIMES_NOT_NULL("homework_times_not_null", "作业轮数不能为空"),
    HOMEWORK_ID_NOT_NULL("homework_id_not_null", "作业ID不能为空"),
    STUDENT_ID_NOT_NULL("student_id_not_null", "学生ID不能为空"),
    ;

    private String code;
    private String description;

    ResultConfigEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

}
